import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class StackComp extends StatelessWidget {
  const StackComp({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: double.infinity,
      decoration: const BoxDecoration(
        color: Colors.black12,
      ),
      alignment: Alignment.center,
      child: Stack(
        alignment: Alignment.bottomCenter,
        children: [
          Container(
            width: 240,
            height: 240,
            color: Colors.blueAccent,
          ),
          Container(
            width: 200,
            height: 200,
            color: Colors.orange,
          ),
          Container(
            width: 160,
            height: 160,
            color: Colors.green,
          ),
          Container(
            width: 120,
            height: 120,
            color: Colors.pinkAccent,
          ),
          Positioned(
            top: 6,
            child: Image.asset(
              'assets/open_eyes.png',
              width: 80,
              height: 80,
            ),
          ),
          Positioned(
            child: Image.asset(
              'assets/qiche.png',
              width: 100,
              height: 100,
            ),
          ),
        ],
      ),
    );
  }
}
